package com.brother.util;

import java.util.HashMap;
import java.util.Map;

/**用于保存报告表数据
 * @author cong2
 *
 */
public class ReportTableUtils {

private static ReportTableUtils instance = null;

private ReportTableUtils(){
	
}

public static ReportTableUtils getInstance(){
	if(instance == null){
		instance = new ReportTableUtils();
	}
	return instance;
}

/**
 * 对应的imei号是否有历史报告表
 */
private Map<String, Boolean> imeiHasTable = new HashMap<String, Boolean>();

public void setImei(String imei, boolean hasTable){
	this.imeiHasTable.put(imei, hasTable);
}

public boolean hasTable(String imei){
	return this.imeiHasTable.containsKey(imei) ? this.imeiHasTable.get(imei) : false;
}
	
}
